package com.hu.bgp.client.widgets.uicomponents;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.hu.bgp.shared.data.ClientGameType;

public class GameTypeTableAdmin extends SelectionTable<ClientGameType>
{
	

	public Label[] createHeader()
	{
		return new Label[]
		{
			new Label("Alias"), new Label("Player count"), new Label("Status")
		};
	}

	public Widget[] createRow(ClientGameType gameType)
	{
	//	(gameType.getStatus() ? "Activated" : "deactivated")
		String state = "Activated";
		if(!gameType.isActive())
			 state = "deactivated";
		return new Widget[]
		{
			new Label(gameType.getAlias()), new Label("10"), new Label(state)
		};
	}
}
